package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 成果类
 * </p>
 *
 * @author cy
 * @since 2020-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Achieve extends Model<Achieve> {

    private static final long serialVersionUID = 1L;

    public static final int NO_PASS=-1;

    public static final int CHECK=0;

    public static final int PASS=1;
    /**
     * 成果id
     */
    @TableId(value = "achieve_id", type = IdType.AUTO)
    private Integer achieveId;

    /**
     * 成果负责人
     */
    private String achieveLeader;

    /**
     * 成果行业类别
     */
    private String achieveIndustry;

    /**
     * 成果学科类别
     */
    private String achieveType;

    /**
     * 成果名称
     */
    private String achieveName;

    /**
     * 成果简介
     */
    private String achieveIntro;

    /**
     * 专利情况
     */
    private String patent;

    /**
     * 用户id
     */
    private Integer uId;


    /**
     * 审核状态 0为审核，1为通过
     */
    private Integer state;

    /**
     * 上传时间
     */
    private LocalDateTime pubTime;

    /**
     * 封面
     */
    private String cover;


    @Override
    protected Serializable pkVal() {
        return this.achieveId;
    }

}
